package com.sc.entity.vo;


import com.sc.entity.dto.AddCartDTO;

import java.util.Objects;

/**
 * @Author: Sunk 673116067@qq.com
 * @Date: 2018/4/18 16:35
 * @Description:购物车展示类
 */
public class CartVO extends AddCartDTO {
    private String orderId;
    private String productName;
    private Long productPrice;
//    private String productImg;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CartVO cartVO = (CartVO) o;
        return Objects.equals(orderId, cartVO.orderId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(orderId);
    }

    @Override
    public String toString() {
        return "CartVO{" +
                "orderId='" + orderId + '\'' +
                ", productName='" + productName + '\'' +
                ", productPrice=" + productPrice +
                ", productImg='" + productImg + '\'' +
                ", productId=" + productId +
                ", checked=" + checked +
                ", productNum=" + productNum +
                ", list=" + list +
                ", type='" + type + '\'' +
                ", addressId=" + addressId +
                ", subTotal=" + subTotal +
                '}';
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Long getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Long productPrice) {
        this.productPrice = productPrice;
    }

}
